
import java.util.*;public class practice3
{
	public static void main(String[] argc)
	{
		
		
		while(true)
		{
			int i=0;
		System.out.print("输入判断位数的数字:");
			Scanner in=new Scanner(System.in);
			double x=in.nextDouble();
		while(true)
		{if((x>=Math.pow(10, i))&&(x<Math.pow(10, i+1)))
			{System.out.println(i+1+"位数");
			break;}
			i++;}
		
}
	}
}
